<?php

namespace app\api\model\service;

use think\Model;

/**
 * 会员余额日志模型
 */
class GiveMoneyLog extends Model
{

    // 表名
    protected $name = 'user_give_money_log';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = '';
    // 追加属性
    protected $append = [
    ];

    public static function getList($param)
    {
        return self::where(['user_id'=>$param['user_id']])->field('give_money,memo,createtime')->order('id desc')->page($param['page'])->limit(10)->select();
    }
}

